package sk.stuba.fiit.ltasys.web.mvc.model.service;

import java.security.cert.X509CRL;
import java.security.cert.X509Certificate;

import org.bouncycastle.tsp.TimeStampResponse;

import sk.stuba.fiit.pki.ws.schema.beans.OcspResponse;

public interface CommunicatorService {

	public X509Certificate getCertificateFromPKIBySerialNumAndIssuer(String serialNumber,String issuer) throws Exception;
	public X509CRL getCRLFromPKIByIssuer(String issuer) throws Exception;
	public OcspResponse getocspFromPKIBySerialAndIssuer(String issuer, String serialNum);
	public TimeStampResponse getTimestamp(byte[] data) throws Exception;
	
}
